
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xinhao"></use>
                    </svg>
                    <div class="name">信号</div>
                    <div class="fontclass">#icon-xinhao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hujiaozhuanyi"></use>
                    </svg>
                    <div class="name">呼叫转移</div>
                    <div class="fontclass">#icon-hujiaozhuanyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hujiaozhuanyitianchong"></use>
                    </svg>
                    <div class="name">呼叫转移_填充</div>
                    <div class="fontclass">#icon-hujiaozhuanyitianchong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongqi"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-zhongqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-online"></use>
                    </svg>
                    <div class="name">online</div>
                    <div class="fontclass">#icon-online</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongqi1"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-zhongqi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tongyidiaodu"></use>
                    </svg>
                    <div class="name">统一调度</div>
                    <div class="fontclass">#icon-tongyidiaodu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iosvideocam"></use>
                    </svg>
                    <div class="name">ios-videocam</div>
                    <div class="fontclass">#icon-iosvideocam</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongqi3"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-zhongqi3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chongqi"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-chongqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyikaihuitaolun"></use>
                    </svg>
                    <div class="name">会议 开会 讨论</div>
                    <div class="fontclass">#icon-huiyikaihuitaolun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xinhao01"></use>
                    </svg>
                    <div class="name">信号-01</div>
                    <div class="fontclass">#icon-xinhao01</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyi"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#icon-huiyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchu"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#icon-shanchu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconrestart"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-iconrestart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-duanxin"></use>
                    </svg>
                    <div class="name">短信</div>
                    <div class="fontclass">#icon-duanxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyi2"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#icon-huiyi2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guaduan1"></use>
                    </svg>
                    <div class="name">挂断</div>
                    <div class="fontclass">#icon-guaduan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hujiaozhuanyi1"></use>
                    </svg>
                    <div class="name">呼叫转移</div>
                    <div class="fontclass">#icon-hujiaozhuanyi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyizhong_yangshengqi"></use>
                    </svg>
                    <div class="name">会议中_扬声器</div>
                    <div class="fontclass">#icon-huiyizhong_yangshengqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanbiyangshengqi"></use>
                    </svg>
                    <div class="name">关闭扬声器</div>
                    <div class="fontclass">#icon-guanbiyangshengqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyi3"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#icon-huiyi3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fuzhi"></use>
                    </svg>
                    <div class="name">复制</div>
                    <div class="fontclass">#icon-fuzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ic_videocam_off"></use>
                    </svg>
                    <div class="name">ic_videocam_off</div>
                    <div class="fontclass">#icon-ic_videocam_off</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-tianjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-video-channel"></use>
                    </svg>
                    <div class="name">视频</div>
                    <div class="fontclass">#icon-video-channel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyi1"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#icon-huiyi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mic"></use>
                    </svg>
                    <div class="name">icon-mic</div>
                    <div class="fontclass">#icon-mic</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mic_off"></use>
                    </svg>
                    <div class="name">icon-mic_off</div>
                    <div class="fontclass">#icon-mic_off</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hebingfenping"></use>
                    </svg>
                    <div class="name">合并分屏</div>
                    <div class="fontclass">#icon-hebingfenping</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyishi"></use>
                    </svg>
                    <div class="name">会议室,会议</div>
                    <div class="fontclass">#icon-huiyishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yichu"></use>
                    </svg>
                    <div class="name">移除</div>
                    <div class="fontclass">#icon-yichu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhengchangshebei"></use>
                    </svg>
                    <div class="name">正常设备</div>
                    <div class="fontclass">#icon-zhengchangshebei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-touping"></use>
                    </svg>
                    <div class="name">投屏</div>
                    <div class="fontclass">#icon-touping</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyi4"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#icon-huiyi4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongqi4"></use>
                    </svg>
                    <div class="name">重启</div>
                    <div class="fontclass">#icon-zhongqi4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon_yichu"></use>
                    </svg>
                    <div class="name">icon_移除2</div>
                    <div class="fontclass">#icon-icon_yichu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyidengji"></use>
                    </svg>
                    <div class="name">会议登记</div>
                    <div class="fontclass">#icon-huiyidengji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shipin"></use>
                    </svg>
                    <div class="name">视频</div>
                    <div class="fontclass">#icon-shipin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guaduan"></use>
                    </svg>
                    <div class="name">挂断</div>
                    <div class="fontclass">#icon-guaduan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenpingduibi"></use>
                    </svg>
                    <div class="name">分屏对比</div>
                    <div class="fontclass">#icon-fenpingduibi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fuzhi1"></use>
                    </svg>
                    <div class="name">复制</div>
                    <div class="fontclass">#icon-fuzhi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-clouddesktopyunzhuomian"></use>
                    </svg>
                    <div class="name">clouddesktop 云桌面</div>
                    <div class="fontclass">#icon-clouddesktopyunzhuomian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenpingshezhi"></use>
                    </svg>
                    <div class="name">分屏设置</div>
                    <div class="fontclass">#icon-fenpingshezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ziyuan"></use>
                    </svg>
                    <div class="name">会议管理</div>
                    <div class="fontclass">#icon-ziyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huiyiguanli"></use>
                    </svg>
                    <div class="name">会议管理</div>
                    <div class="fontclass">#icon-huiyiguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianchongxing-"></use>
                    </svg>
                    <div class="name">电话呼叫</div>
                    <div class="fontclass">#icon-tianchongxing-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shengyin_shiti"></use>
                    </svg>
                    <div class="name">声音_实体</div>
                    <div class="fontclass">#icon-shengyin_shiti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shengyinjingyin"></use>
                    </svg>
                    <div class="name">声音静音</div>
                    <div class="fontclass">#icon-shengyinjingyin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fuzhi2"></use>
                    </svg>
                    <div class="name">复制</div>
                    <div class="fontclass">#icon-fuzhi2</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
